package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SSavvyRate extends Object implements IMessageBase
    {
        public var rate:int;
        public var direction:ESavvyDirection;
        public const _type:int = 12087;
        public static var _regist:SSavvyRate = new SSavvyRate(true);

        public function SSavvyRate(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SSavvyRate();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.rate);
            this.direction.__write(param1);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.rate = param1.readInt();
            this.direction = ESavvyDirection.__read(param1);
            
        }

    }
}
